package com.yuxl.admin.common.security.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {
    /**
     * JWT 密钥，用于签名和验证 JWT
     */
    private String secret = "your_jwt_secret_key_should_be_at_least_32_characters_long";
    /**
     * JWT 过期时间（秒）
     */
    private Long expiration = 3600L;
    /**
     * token 前缀
     */
    private String bearerToken = "Bearer ";
    /**
     * header 标识
     */
    private String headerKey = "Authorization";
}
